package controllers

import (
	"GameServer/Game/m"

	"github.com/gin-gonic/gin"

	"fmt"
)

func SaveData(c *gin.Context) {
	pswd := c.Param("pswd")
	if pswd != "luxingwen" {
		handleErr(c, "错误")
		return
	}
	fmt.Println("save--->all.")
	m.Cache.SaveAll()
	handleOk(c, "ok")
}
